#include "resourcemanager.h"
#include "resourcemanagerbd.h"
#include "resourcemanagerxml.h"

bool ResourceManager::isValid()
{
    return m_valid;
}

ResourceManager* ResourceManager::getMangaInstance(ManagerType m)
{
    static ResourceManager * inst = 0;
    if(m == Bd)
    {
	inst =  ResourceManagerBD::getMangaInstance();
    }
    else if(m == Xml)
    {
	inst = ResourceManagerXml::getMangaInstance();
    }
    return inst;
}
ResourceManager* ResourceManager::getBookmarkInstance(ManagerType m)
{
    static ResourceManager * inst = 0;
    if(m == Bd)
    {
	inst =  ResourceManagerBD::getBookmarkInstance();
    }
    else if(m == Xml)
    {
	inst = ResourceManagerXml::getBookmarkInstance();
    }
    return inst;
}
